/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niedziela12.pai.ejb.user.managers;

import com.niedziela12.pai.ejb.dto.UserDTO;
import com.niedziela12.pai.ejb.dto.UserRolesDTO;
import com.niedziela12.pai.ejb.dto.RoleDTO;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Kamil
 */
@Local
public interface UserManagerLocal {
    public void addNewUser(UserDTO user);
    public void updateUserInfo(UserDTO user);
    public void deleteUser(UserDTO user);
    public List<UserDTO> getUsers(int from, int to);
    public List<UserDTO> getAllUsers();
    public int getUsersCount();
    public UserDTO getUser(Long id);
    public UserDTO getUserByLogin(String login);

    public List<UserRolesDTO> getUsersRoles(UserDTO user);

    public void updateUsersRoles(List<UserRolesDTO> roleList);
    
    public List<RoleDTO> findRolesDef();
}
